package com.gt.task;

import com.alibaba.fastjson.JSONObject;
import org.springframework.http.HttpRequest;
import org.springframework.http.client.ClientHttpResponse;

/**
 * RestTemplate拦截器执行任务
 */
public interface RestTemplateTask {

     /**
      * 任务
      * @param request
      * @param response
      * @param body
      * @param args
      */
     void execute(HttpRequest request, ClientHttpResponse response, byte[] body, JSONObject args);

}
